#!/bin/bash

# 设置PYTHONPATH，将项目根目录添加到Python路径中
export PYTHONPATH="$PYTHONPATH:$(pwd)"

# 进入ticket_system目录
cd ticket_system

# 运行makemigrations命令
python manage.py makemigrations --settings=ticket_system.settings

# 运行migrate命令
python manage.py migrate --settings=ticket_system.settings